package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.message.jt808.extend.IntegerId;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author shuiyun
 * @program gateway
 * @description 摄像头立即拍摄应答
 * @date 2022-05-08 22:08
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Message(value = JT808.摄像头立即拍摄命令应答0x0805)
public class T0805 extends JTMessage {

    @FieldValue(type = DataType.WORD, desc = "应答流水号")
    private Integer serialNo;

    @FieldValue(type = DataType.BYTE, desc = "结果")
    private Integer result;

    @FieldValue(type = DataType.LIST,lengthSize = 2, desc = "拍摄成功的多媒体ID列表")
    private List<IntegerId> ids;


}
